home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
DesktopAnimServer.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
13KB
|
469 lines
/*
* This file was generated by the SOM Compiler.
* FileName: DesktopAnimServer.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_DesktopAnimServer_xh
#define SOM_DesktopAnimServer_xh
class DesktopAnimServer;
#define DesktopAnimServer_MajorVersion 0
#define DesktopAnimServer_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <DesktopAnimPanel.xh>
#include <DesktopAnimDraw.xh>
#include <FileManagerTypes.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef DesktopAnimServer_API
#define DesktopAnimServer_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class Repository;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define DesktopAnimServerCClassData DesktopAnimServerClassData
#define DesktopAnimServerNewClass(major,minor) somNewVersionedClassReference(DesktopAnimServer,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define DesktopAnimServerMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the DesktopAnimServer class object, and the methods it introduces. */
SOMEXTERN struct DesktopAnimServerClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somDToken fRefNum;
somDToken fDesktopModuleList;
somMToken _get_fRefNum;
somMToken _get_fDesktopModuleList;
somMToken Initialize;
somMToken Close;
somMToken CountModules;
somMToken GetDesktopAnimDraw;
somMToken GetDesktopAnimPanel;
somMToken GetModulesFile;
somMToken GetModuleDescription;
somMToken unused0;
} SOMDLINK DesktopAnimServerClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(DesktopAnimServer_Class_Source) && !defined(SOM_Module_desktopanimserver_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list DesktopAnimServerClassData
#endif
#endif
/*
* -- Typedefs for DesktopAnimServer Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_DesktopAnimServer_Initialize)(DesktopAnimServer *somSelf, Environment *ev,
FSObjectRef moduleFileRef,
SInt16 refNum,
DesktopAnimModuleListRsrcHandle modulesList);
typedef OSStatus (* SOMLINK somTD_DesktopAnimServer_Close)(DesktopAnimServer *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_DesktopAnimServer_CountModules)(DesktopAnimServer *somSelf, Environment *ev,
DesktopAnimFlags desktopAnimFlags,
SInt32* modulesCnt);
typedef OSStatus (* SOMLINK somTD_DesktopAnimServer_GetDesktopAnimDraw)(DesktopAnimServer *somSelf, Environment *ev,
AVIDType prefsDisplayID,
DesktopAnimModuleDescRef moduleDescRef,
DesktopAnimModuleInfo* moduleInfo,
DesktopAnimDraw** desktopAnimDraw);
typedef OSStatus (* SOMLINK somTD_DesktopAnimServer_GetDesktopAnimPanel)(DesktopAnimServer *somSelf, Environment *ev,
AVIDType prefsDisplayID,
DesktopAnimModuleDescRef moduleDescRef,
DesktopAnimModuleInfo* moduleInfo,
DesktopAnimPanel** desktopAnimPanel);
typedef OSStatus (* SOMLINK somTD_DesktopAnimServer_GetModulesFile)(DesktopAnimServer *somSelf, Environment *ev,
FSObjectRef* modulesFileRef);
typedef OSStatus (* SOMLINK somTD_DesktopAnimServer_GetModuleDescription)(DesktopAnimServer *somSelf, Environment *ev,
SInt32 index,
DesktopAnimModuleInfo* moduleInfo,
DesktopAnimModuleDescRef* moduleDescRef);
typedef DesktopAnimModuleListRsrcHandle (* SOMLINK somTD_DesktopAnimServer__get_fDesktopModuleList)(DesktopAnimServer *somSelf, Environment *ev);
typedef SInt16 (* SOMLINK somTD_DesktopAnimServer__get_fRefNum)(DesktopAnimServer *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_DesktopAnimServer_somInit)(DesktopAnimServer *somSelf);
typedef void (* SOMLINK somTD_DesktopAnimServer_somUninit)(DesktopAnimServer *somSelf);
typedef SOMObject* (* SOMLINK somTD_DesktopAnimServer_somDuplicateReference)(DesktopAnimServer *somSelf);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somCompareReference)(DesktopAnimServer *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_DesktopAnimServer_somRelease)(DesktopAnimServer *somSelf);
typedef void (* SOMLINK somTD_DesktopAnimServer_somFree)(DesktopAnimServer *somSelf);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somCanDelete)(DesktopAnimServer *somSelf);
typedef SOMClass* (* SOMLINK somTD_DesktopAnimServer_somGetClass)(DesktopAnimServer *somSelf);
typedef corbastring (* SOMLINK somTD_DesktopAnimServer_somGetClassName)(DesktopAnimServer *somSelf);
typedef long (* SOMLINK somTD_DesktopAnimServer_somGetSize)(DesktopAnimServer *somSelf);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somIsA)(DesktopAnimServer *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somRespondsTo)(DesktopAnimServer *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somIsInstanceOf)(DesktopAnimServer *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somDispatch)(DesktopAnimServer *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somClassDispatch)(DesktopAnimServer *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somCastObj)(DesktopAnimServer *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_DesktopAnimServer_somResetObj)(DesktopAnimServer *somSelf);
typedef SOMObject* (* SOMLINK somTD_DesktopAnimServer_somPrintSelf)(DesktopAnimServer *somSelf);
typedef void (* SOMLINK somTD_DesktopAnimServer_somDumpSelf)(DesktopAnimServer *somSelf,
long level);
typedef void (* SOMLINK somTD_DesktopAnimServer_somDumpSelfInt)(DesktopAnimServer *somSelf,
long level);
}
#endif /* DesktopAnimServer_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for DesktopAnimServer
*/
class DesktopAnimServer : public SOMObject
{
public:
// DesktopAnimServer::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for DesktopAnimServer, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(DesktopAnimServer);
}
// DesktopAnimServer::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: Initialize */
OSStatus Initialize(Environment *ev,
FSObjectRef moduleFileRef,
SInt16 refNum,
DesktopAnimModuleListRsrcHandle modulesList)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,Initialize)
(this,ev,moduleFileRef,refNum,modulesList);
}
/* method: Close */
OSStatus Close(Environment *ev)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,Close)
(this,ev);
}
/* method: CountModules */
void CountModules(Environment *ev,
DesktopAnimFlags desktopAnimFlags,
SInt32* modulesCnt)
{
SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,CountModules)
(this,ev,desktopAnimFlags,modulesCnt);
}
/* method: GetDesktopAnimDraw */
OSStatus GetDesktopAnimDraw(Environment *ev,
AVIDType prefsDisplayID,
DesktopAnimModuleDescRef moduleDescRef,
DesktopAnimModuleInfo* moduleInfo,
DesktopAnimDraw** desktopAnimDraw)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetDesktopAnimDraw)
(this,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimDraw);
}
/* method: GetDesktopAnimPanel */
OSStatus GetDesktopAnimPanel(Environment *ev,
AVIDType prefsDisplayID,
DesktopAnimModuleDescRef moduleDescRef,
DesktopAnimModuleInfo* moduleInfo,
DesktopAnimPanel** desktopAnimPanel)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetDesktopAnimPanel)
(this,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimPanel);
}
/* method: GetModulesFile */
OSStatus GetModulesFile(Environment *ev,
FSObjectRef* modulesFileRef)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetModulesFile)
(this,ev,modulesFileRef);
}
/* method: GetModuleDescription */
OSStatus GetModuleDescription(Environment *ev,
SInt32 index,
DesktopAnimModuleInfo* moduleInfo,
DesktopAnimModuleDescRef* moduleDescRef)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetModuleDescription)
(this,ev,index,moduleInfo,moduleDescRef);
}
/* method: _get_fDesktopModuleList */
DesktopAnimModuleListRsrcHandle _get_fDesktopModuleList(Environment *ev)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,_get_fDesktopModuleList)
(this,ev);
}
/* method: _get_fRefNum */
SInt16 _get_fRefNum(Environment *ev)
{
return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,_get_fRefNum)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,DesktopAnimServer,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,DesktopAnimServer,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,DesktopAnimServer,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean DesktopAnimServer_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean DesktopAnimServer_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,DesktopAnimServer,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* DesktopAnimServer */
#endif /* SOM_DesktopAnimServer_xh */